package com.note.api;

import com.note.model.Dept;
import com.note.model.Tree;

import java.util.List;
import java.util.Map;

/**
 * Created by ADMIN on 2018/3/27.
 */
public interface DeptService {
    Dept get(Long deptId);

    List<Dept> list(Map<String, Object> map);

    int count(Map<String, Object> map);

    int save(Dept sysDept);

    int update(Dept sysDept);

    int remove(Long deptId);

    int batchRemove(Long[] deptIds);

    Tree<Dept> getTree();

    boolean checkDeptHasUser(Long deptId);
}
